<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: phyPER Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00176.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">phyPER Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="phyPER" --><!-- doxytag: inherits="BaseModule" --><div class="dynheader">
Inheritance diagram for phyPER:</div>
<div class="dyncontent">
<div class="center"><img src="a00939.png" border="0" usemap="#phyPER_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for phyPER:</div>
<div class="dyncontent">
<div class="center"><img src="a00940.png" border="0" usemap="#phyPER_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00941.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af66aa42eb9cc4a85ed2df5b065773305"></a><!-- doxytag: member="phyPER::receiveSignal" ref="af66aa42eb9cc4a85ed2df5b065773305" args="(cComponent *source, simsignal_t signalID, cObject *obj)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00176.html#af66aa42eb9cc4a85ed2df5b065773305">receiveSignal</a> (cComponent *source, simsignal_t signalID, cObject *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Called by the signaling mechanism whenever a change occurs we're interested in. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00176.html#a77bbef34f56830b35aafbdbb6ec56627">initialize</a> (int stage)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Basic initialization for all modules.  <a href="#a77bbef34f56830b35aafbdbb6ec56627"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54a6aabd6745231515625b51768b23d5"></a><!-- doxytag: member="phyPER::handleMessage" ref="a54a6aabd6745231515625b51768b23d5" args="(cMessage *)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>handleMessage</b> (cMessage *)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09d1674256c1434b29f90a40931ee8e0"></a><!-- doxytag: member="phyPER::nbSyncAttempts" ref="a09d1674256c1434b29f90a40931ee8e0" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbSyncAttempts</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8cda596d9050f88d812f36080bf1314"></a><!-- doxytag: member="phyPER::nbSyncSuccesses" ref="ae8cda596d9050f88d812f36080bf1314" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbSyncSuccesses</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f539ccf067a9cef775265a7d603a377"></a><!-- doxytag: member="phyPER::nbRx" ref="a1f539ccf067a9cef775265a7d603a377" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbRx</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e2c428ebbde1ca44d852fd9838cd7b0"></a><!-- doxytag: member="phyPER::nbRxnoRS" ref="a6e2c428ebbde1ca44d852fd9838cd7b0" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbRxnoRS</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46cb3a51375d6f3f70ec02b0df3953d8"></a><!-- doxytag: member="phyPER::packet" ref="a46cb3a51375d6f3f70ec02b0df3953d8" args="" -->
<a class="el" href="a00168.html">Packet</a>&#160;</td><td class="memItemRight" valign="bottom"><b>packet</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ac4ec9415faec8b717cdf7bb5b72a6c"></a><!-- doxytag: member="phyPER::uwbirpacket" ref="a5ac4ec9415faec8b717cdf7bb5b72a6c" args="" -->
<a class="el" href="a00225.html">UWBIRPacket</a>&#160;</td><td class="memItemRight" valign="bottom"><b>uwbirpacket</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa3d3eb88fc496784729cd9337a9b4c1"></a><!-- doxytag: member="phyPER::maiPER" ref="afa3d3eb88fc496784729cd9337a9b4c1" args="" -->
cOutVector&#160;</td><td class="memItemRight" valign="bottom"><b>maiPER</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ec7d2775d5f39cd384a48e6941cd5d0"></a><!-- doxytag: member="phyPER::maiPERnoRS" ref="a4ec7d2775d5f39cd384a48e6941cd5d0" args="" -->
cOutVector&#160;</td><td class="memItemRight" valign="bottom"><b>maiPERnoRS</b></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a77bbef34f56830b35aafbdbb6ec56627"></a><!-- doxytag: member="phyPER::initialize" ref="a77bbef34f56830b35aafbdbb6ec56627" args="(int stage)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void phyPER::initialize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>stage</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Basic initialization for all modules. </p>
<p>Subscription should be in stage==0, and firing notifications in stage==1 or later.</p>
<p>NOTE: You have to call this in the <a class="el" href="a00176.html#a77bbef34f56830b35aafbdbb6ec56627" title="Basic initialization for all modules.">initialize()</a> function of the inherited class! </p>

<p>Reimplemented from <a class="el" href="a00027.html#a03030e439aaf030c83da6e71e8be2f80">BaseModule</a>.</p>

<p>References <a class="el" href="a00025.html#a665bf8ad06b2c4b5419669869e68ef00">BaseLayer::catPacketSignal</a>, <a class="el" href="a00080.html#a1ea6df6903891318b6d15881f1908984">DeciderUWBIRED::catUWBIRPacketSignal</a>, and <a class="el" href="a00027.html#aabf0226159b22b46e70031fd3bb3b1b2">BaseModule::findHost()</a>.</p>
<div class="fragment"><pre class="fragment">{
  <a class="code" href="a00176.html#a77bbef34f56830b35aafbdbb6ec56627" title="Basic initialization for all modules.">BaseModule::initialize</a>(stage);
  <span class="keywordflow">if</span>(stage == 0) {
    <a class="code" href="a00027.html#aabf0226159b22b46e70031fd3bb3b1b2" title="Function to get a pointer to the host module.">findHost</a>()-&gt;subscribe(<a class="code" href="a00025.html#a665bf8ad06b2c4b5419669869e68ef00" title="SignalID for packets.">BaseLayer::catPacketSignal</a>.<a class="code" href="a00176.html#a77bbef34f56830b35aafbdbb6ec56627" title="Basic initialization for all modules.">initialize</a>(), <span class="keyword">this</span>);
    <a class="code" href="a00027.html#aabf0226159b22b46e70031fd3bb3b1b2" title="Function to get a pointer to the host module.">findHost</a>()-&gt;subscribe(<a class="code" href="a00080.html#a1ea6df6903891318b6d15881f1908984" title="Signal for emitting UWBIR packets.">DeciderUWBIRED::catUWBIRPacketSignal</a>.<a class="code" href="a00176.html#a77bbef34f56830b35aafbdbb6ec56627" title="Basic initialization for all modules.">initialize</a>(), <span class="keyword">this</span>);
    maiPER.setName(<span class="stringliteral">&quot;maiPER&quot;</span>);
    maiPERnoRS.setName(<span class="stringliteral">&quot;maiPERnoRS&quot;</span>);
    nbSyncAttempts = 0;
    nbSyncSuccesses = 0;
    nbRx = 0;
    nbRxnoRS = 0;
  }
}
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/modules/utility/<a class="el" href="a00497_source.html">phyPER.h</a></li>
<li>D:/Projects/MiXiM/extsrc/mixim/src/modules/utility/phyPER.cc</li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00176.html">phyPER</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:33 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
